#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMediaPlayer>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void positionChange(quint64);

    void durationChange(quint64);

    void on_prev_clicked();

    void on_play_clicked();

    void on_next_clicked();

    void on_lineEdit_editingFinished();
    void on_horizontalSlider_2_sliderMoved(int position);

private:
    void scanMusic(QString);
private:
    Ui::MainWindow *ui;
    QMediaPlayer* mediaPlayer = nullptr;
    QMediaPlaylist* mediaPlaylist = nullptr;
};

#endif // MAINWINDOW_H
